package com.googlecode.maratische.google.model;

import be.lechtitseb.google.reader.api.core.GoogleReader;
import be.lechtitseb.google.reader.api.model.exception.GoogleReaderException;

import com.googlecode.maratische.google.BaseException;
import com.googlecode.maratische.google.DaoAction;

public class CommandUnStarredItem extends Command {

	@Override
	public boolean execute(DaoAction daoAction) throws GoogleReaderException, BaseException  {
		GoogleReader googleReader = getGoogleReader(daoAction);
		googleReader.markItemAsUnStarred(getString1(),getString2());
		return true;
	}

	@Override
	public String getType() {
		return Commands.UN_STARRED_ITEM.toString();
	}
	
	@Override
	public Integer getPriority() {
		return 6;
	}
}
